//
//package com.rt.schedulebase.service.impl;
//import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
//import com.baomidou.mybatisplus.core.conditions.Wrapper;
//import java.util.Map;
//import java.util.HashMap;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import java.util.List;
//import com.rt.schedulebase.dto.ExamApplyDto;
//import java.io.Serializable;
//import com.rt.schedulebase.service.IExamApplyService;
//import com.rt.schedulebase.entity.ExamApply;
//import com.rt.schedulebase.mapper.ExamApplyMapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//public class ExamApplyServiceImpl extends ServiceImpl<ExamApplyMapper, ExamApply> implements IExamApplyService
//{
//@Override
//    public boolean insertSelective(final ExamApply examApply) {
//        return this.retBool(Integer.valueOf(((ExamApplyMapper)this.baseMapper).insert(examApply)));
//    }
//
//@Override
//    public boolean deleteByPrimaryKey(final String key) {
//        return this.retBool(Integer.valueOf(((ExamApplyMapper)this.baseMapper).deleteById((Serializable)key)));
//    }
//
//@Override
//    public boolean updateByPrimaryKeySelective(final ExamApply examApply) {
//        return this.retBool(Integer.valueOf(((ExamApplyMapper)this.baseMapper).updateById(examApply)));
//    }
//
//@Override
//    public ExamApply selectByPrimaryKey(final String key) {
//        return (ExamApply)((ExamApplyMapper)this.baseMapper).selectById((Serializable)key);
//    }
//
//@Override
//    public List<ExamApply> getList(final ExamApplyDto dto) {
//        final QueryWrapper<ExamApply> qw = (QueryWrapper<ExamApply>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("SICK_ID", dto.getSickId());
//        map.put("IC_CARD", dto.getIcCard());
//        map.put("REQ_DEPT", dto.getReqDept());
//        map.put("REQ_HOSPITAL", dto.getReqHospital());
//        map.put("PATIENT_SOURCE", dto.getPatientSource());
//        map.put("OUT_REG_NO", dto.getOutRegNo());
//        map.put("OUTPATIENT_NO", dto.getOutpatientNo());
//        map.put("INPATIENT_NO", dto.getInpatientNo());
//        map.put("EXAM_CLASS", dto.getExamClass());
//        qw.allEq((Map)map, false);
//        final List<ExamApply> list = (List<ExamApply>)((ExamApplyMapper)this.baseMapper).selectList((Wrapper)qw);
//        return list;
//    }
//
//@Override
//    public List<ExamApply> getListAll() {
//        return (List<ExamApply>)((ExamApplyMapper)this.baseMapper).selectList((Wrapper)null);
//    }
//
//@Override
//    public boolean delete(final ExamApply examApply) {
//        final UpdateWrapper<ExamApply> uw = (UpdateWrapper<ExamApply>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((ExamApplyMapper)this.baseMapper).delete((Wrapper)uw)));
//    }
//
//@Override
//    public boolean update(final ExamApply examApply) {
//        final UpdateWrapper<ExamApply> uw = (UpdateWrapper<ExamApply>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APPLY_NO", examApply.getApplyNo());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((ExamApplyMapper)this.baseMapper).update(examApply, (Wrapper)uw)));
//    }
//
//@Override
//    public ExamApply getInfo(final ExamApplyDto dto) {
//        final QueryWrapper<ExamApply> qw = (QueryWrapper<ExamApply>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APPLY_NO", dto.getApplyNo());
//        qw.allEq((Map)map, false);
//        return (ExamApply)((ExamApplyMapper)this.baseMapper).selectOne((Wrapper)qw);
//    }
//
//@Override
//    public List<ExamApplyDto> getPatientApplyList(final ExamApplyDto dto) {
//        return null;
//    }
//}
